<style>
body {
	background: #fff;
}
.fui-content{background:#fff}
.fui-icon-group .fui-icon-col {
    margin: 5px 0;
}
.fe-floatback a {
    width: 1.3rem;
    height: 1.3rem;
    line-height: 1.3rem;
    opacity: 0.6;
}
.fe-mod-14 {
    min-height: 174px;
	padding-bottom: 5.8rem;
	background: #fff;
}

.fe-mod-14 a , .fe-mod-14 a:hover {
    color: inherit;
    text-decoration: none;
}

.fe-mod-14 img {
    width: 100%;
    display: block;
}

.fe-mod-14-menu {
    height: 45px;
    width: 100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: rgba(0,0,0,0.4);
    color: #fff;
}

.fe-mod-14-menu a {
    color: inherit;
}

.fe-mod-14-nav {
    height: 40px;
    width: 25%;
    padding-top: 5px;
    float: left;
    text-align: center;
    font-size: 12px;
}

.fe-mod-14-nav i {
    font-size: 18px;
}

.fe-mod-14-nav-on {
    height: 45px;
    border-bottom: 3px solid #dd2322;
}

.fe-mod-14-shopname {
    height: 24px;
    width: 100%;
    position: absolute;
    top: 7rem;
    left: 0px;
}
.fe-mod-14-name {
    height: 1.4rem;
    width: auto;
    line-height: 1.4rem;
    margin: auto;
    display: table;
    font-size:0.7rem;
    padding: 0px 15px;
}
.fe-mod-14-map {
    width: auto;
    background: rgba(0,0,0,0.2);
    margin: auto;
    display: table;
    border-radius: 1.4rem;
    font-size:0.6rem;
    color: #fff;
    padding: 0px 0.7rem;
}

.fe-mod-14-shoplogo {
    height: 80px;
    width: 80px;
    padding: 4px;
    margin-left: -40px;
    position: absolute;
    top: 3.6rem;
    left: 50%;
}
.fe-mod-14-shoplogo-img {
    height: 70px;
    width: 70px;
    padding: 4px;
    border-radius: 10px;
    margin: auto;
}
.fe-mod-14-shoplogo-img .vip {
	background: #09ba07 none repeat scroll 0 0;
    color: #fff;
    position: absolute;
    top: 2.6rem;
	margin-left:2.2rem;
	height: 0.85rem;
    width: 0.85rem;
    vertical-align: top;
    z-index: 100;
	line-height:1.2;
	text-align:center;
	border: 1.3px solid #fff;
	border-radius:0.85rem;
}
.fe-mod-14-shoplogo-img .set {
    position: absolute;
    top: 0.1rem;
	margin-left:2.2rem;
	height: 0.85rem;
    width: 0.85rem;
    vertical-align: top;
    z-index: 100;
	line-height:1.2;
	text-align:center;
}
.fe-mod-14-shoplogo-img img {
    height: 60px;
    width: 60px;
    border-radius: 10px;
}
.fe-mod-14-shopinfo {
	position: absolute;top:10.2rem;left:2.5%;width:95%;padding: 12px 0 10px;background-color: #fff;border-radius: 10px;border: 1px solid #f2f2f2;
}
.fe-mod-14-shopinfo .desc {
	padding:0 0.8rem;
	font-size:0.6rem;
}
.fe-mod-14-shopinfo .data {
	padding:0 0.8rem;
	margin-top:0.6rem;
	font-size:0.55rem;
	color:#999
}
.post-card .image img { border-radius:2.2rem;}
</style>
<div ng-include="sys_html('_header')"></div>
<div class="fui-page order-create-page fui-page-current" >
	<div class="fui-content" style="margin-top:2.0rem">
		<div class="fui-searchbar bar" style="z-index: 0;">
			<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:#fff">
					<div style="position: relative;left:0;top:0;">
						<div class="search-input">
							<i id="searchsub" class="icon icon-search" ng-click="pagedata.getlist(1)"></i>
							<input type="search" placeholder="输入搜索" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.56rem;background:#f9f9f9" />
						</div>
					</div>
			</div>
		</div>
		<div ng-if="pagedata.list.length<1" class="fui-card fui-card-list fui-card-full post-card">
			<div class="fui-card-content" style="text-align:center;margin-top:1rem">
				<b class="fui-card-content-title">
					还没有任何需要审核的哦！
				</b>
			</div>
		</div>
		<div class="fui-card fui-card-list fui-card-full post-card" ng-repeat="row in pagedata.list">
			<a class='fui-card-info' style="margin-bottom:0.3rem" ng-click="access_json('/item//id='+row.id)" >
				<div class='image'>
					<img ng-src="{{tomedia(row.member.avatar) || '../core/resource/images/nopic.jpg'}}"  />
				</div>
				<div class="text">
					<span class="title" style="height:1rem;color:#f60">{{row.member.nickname || '匿名'}}</span>
					<span class="subtitle" style="font-size:0.5rem;padding-top:0.1rem">{{row.createtime || '1天前'}} 发布</span>
				</div>
			</a>
			<div class="fui-card-content" style="margin-left:2.5rem;" ng-click="access_json('/item//id='+row.id)" >
				<b class="fui-card-content-title">
					{{row.title || '标题为空'}} <span ng-if="row.type !=4" class="price">￥{{row.fee ||'0.00'}}</span>
				</b>			
			</div>
			<div ng-repeat="p in row.content">
				<div class="fui-card-images" style="margin-left:2.7rem;padding:0.2rem;" ng-click="access_json('/item//id='+row.id)" >
					<img ng-if="p.type==3" ng-src="{{tomedia(p.data) || '../core/resource/images/nopic.jpg'}}" style="width:3rem;height:3rem" />
					<img ng-if="p.type==10" ng-repeat="img in p.data track by $index" ng-src="{{tomedia(img) || '../core/resource/images/nopic.jpg'}}"  style="width:3rem;height:3rem" />
				</div>
				<div ng-if="p.type ==11" class="fui-video">
					<video src="{{tomedia(p.data)}}" height="180" width="100%" controls="" x5-playsinline="" playsinline="" webkit-playsinline="" poster="" preload="auto"></video>
				</div>
			</div>
			<div style="margin:0.3rem 0.7rem 0.3rem 2.7rem;font-size:0.56rem;color:#999;height:1rem">
				<span style="float:right" ng-click="pagedata.unpass(row.id);"><i class="icon icon-shanchu1" style="color:red"></i> 忽略</span>
				<span style="float:right;margin-right:0.2rem;color:#18bc9c" ng-click="pagedata.pass(row.id);"><i class="icon icon-zhifeiji" style="color:#18bc9c"></i> 通过</span>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>

<script>
//获取关注

scope.pagedata.pass=function(id){
	var params={
		data:{'id':id},
		op:'pass',
		callback:function(res){
			console.log(res);
			scope.message('已通过该作品！');
			scope.$evalAsync();
			window.location.reload();
		}
	};
	scope.post_json(params);
}
scope.pagedata.unpass=function(id){
	var params={
		data:{'id':id},
		op:'unpass',
		callback:function(res){
			console.log(res);
			scope.message('已忽略该作品！');
			scope.$evalAsync();
			window.location.reload();
		}
	};
	scope.post_json(params);
}
</script>
<script>
scope.loading = true;  //状态标记
scope.isnodata = false;
scope.pagedata.list =[];
//滚动加载
var page = 1;
scope.pagedata.getlist=function(){
		scope.get('jy_quan/shenhe/getlist/page='+page,
				function(data){
					console.log('data');console.log(data);
					if(data.error !=1){
								for (var i=0;i<data.list.length;i++){
									scope.pagedata.list.push(data.list[i]);
								}
								if(page >1){
									$("#goodslist").animate({scrollTop:0},300);
								}
								if(data.list.length<1){
									scope.isnodata=true;
								}
								page++;
								scope.loading = false;
								scope.$evalAsync();
					}else{
								console.log('error');
					};
		});
}
scope.pagedata.getlist();
window.addEventListener('scroll', function () {
    if(!scope.isnodata && !scope.loading &&  window.pageYOffset + window.innerHeight >= document.documentElement.scrollHeight){
        scope.loading = true;  //状态标记
		scope.pagedata.getlist();
     }
})
</script>